package com.wulong.office.bean;

import java.text.SimpleDateFormat;
import java.util.Date;

public class WordComment {
    /** 批注ID */
    private String id;
    /** 批注内容 */
    private String comment;
    /** 批注人 */
    private String author;
    /** 批注时间 */
    private Date date;
    /** 批注引用的正文 */
    private String commentRef;
    /** 批注段落ID */
    private String paraId;
    /** 回复批注段落ID */
    private String paraIdParent;

    public String getId() { return id; }

    public WordComment setId(String id) {
        this.id = id;
        return this;
    }

    public String getComment() {
        return comment;
    }

    public WordComment setComment(String comment) {
        this.comment = comment;
        return this;
    }

    public String getAuthor() {
        return author;
    }

    public WordComment setAuthor(String author) {
        this.author = author;
        return this;
    }

    public Date getDate() {
        return date;
    }

    public WordComment setDate(Date date) {
        this.date = date;
        return this;
    }

    public String getCommentRef() {
        return commentRef;
    }

    public void setCommentRef(String commentRef) {
        this.commentRef = commentRef;
    }

    public String getParaId() {
        return paraId;
    }

    public void setParaId(String paraId) {
        this.paraId = paraId;
    }

    public String getParaIdParent() {
        return paraIdParent;
    }

    public void setParaIdParent(String paraIdParent) {
        this.paraIdParent = paraIdParent;
    }

    @Override
    public String toString() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return "WordComment{" +
                "id='" + id + '\'' +
                ", comment='" + comment + '\'' +
                ", author='" + author + '\'' +
                ", date=" + sdf.format(date) +
                ", commentRef='" + commentRef + '\'' +
                ", paraId='" + paraId + '\'' +
                ", paraIdParent='" + paraIdParent + '\'' +
                '}';
    }
}
